package functions.web.filter;

import javax.servlet.http.HttpSession;
import route.AbsFilter;

/**
 *
 * @author meluo
 * @data 
 */
public class IsLogin extends AbsFilter {

    @Override
    public boolean filter() {
        HttpSession session=getRequest().getSession();
        String key=(String) session.getValue("userKey");
        if(null!=key&&key.length()!=0){
            return true;
        }
        return false;
    }

}
